package com.news.model;

import java.util.List;

public class printnews {
	public static void main(String[] args) {
		NewsJDBCDAO dao = new NewsJDBCDAO();
		List<NewsVO> list = dao.getAll();
		for (NewsVO a : list) {
			System.out.print(a.getNews_id() + ",");
			System.out.print(a.getTitle() + ",");
			System.out.print(a.getContent()+ ",");
			System.out.print(a.getTime());
			System.out.println();
		}
		
//		NewsVO n = new NewsVO();
//		
//		n.setTitle("xxx");
//		n.setContent("ggg");
//		n.setNews_id("1000000002");
//		dao.update(n);
	}
	
	
	
	
	
	
	
	
	
	
	
}
